From 4ef61e231114c0a9b64384e5d545a5ff2a012cf6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Torsten=20Sch=C3=B6nfeld?= Date: Sat, 15 Oct 2011 19:18:52 +0200 Subject: [PATCH] gtk: add annotations for some GtkRadio* constructors Since constructors like gtk_radio_button_new_from_widget take an instance of their type as the first argument, the gi scanner interprets them as methods. https://bugzilla.gnome.org/show_bug.cgi?id=661858 --- gtk/gtkradiobutton.c | 2 +- gtk/gtkradiomenuitem.c | 6 +++--- gtk/gtkradiotoolbutton.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 73f11c678b..c835ae027e 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -483,7 +483,7 @@ gtk_radio_button_new_with_mnemonic (GSList *group, } /** - * gtk_radio_button_new_from_widget: + * gtk_radio_button_new_from_widget: (constructor) * @radio_group_member: (allow-none): an existing #GtkRadioButton. * * Creates a new #GtkRadioButton, adding it to the same group as diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c index a38f667e4d..d64a3c4285 100644 --- a/gtk/gtkradiomenuitem.c +++ b/gtk/gtkradiomenuitem.c @@ -298,7 +298,7 @@ gtk_radio_menu_item_new_with_mnemonic (GSList *group, } /** - * gtk_radio_menu_item_new_from_widget: + * gtk_radio_menu_item_new_from_widget: (constructor) * @group: An existing #GtkRadioMenuItem * * Creates a new #GtkRadioMenuItem adding it to the same group as @group. @@ -321,7 +321,7 @@ gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group) } /** - * gtk_radio_menu_item_new_with_mnemonic_from_widget: + * gtk_radio_menu_item_new_with_mnemonic_from_widget: (constructor) * @group: An existing #GtkRadioMenuItem * @label: the text of the button, with an underscore in front of the * mnemonic character @@ -351,7 +351,7 @@ gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group, } /** - * gtk_radio_menu_item_new_with_label_from_widget: + * gtk_radio_menu_item_new_with_label_from_widget: (constructor) * @group: an existing #GtkRadioMenuItem * @label: the text for the label * diff --git a/gtk/gtkradiotoolbutton.c b/gtk/gtkradiotoolbutton.c index 75fbcd2d35..f56e2cbb00 100644 --- a/gtk/gtkradiotoolbutton.c +++ b/gtk/gtkradiotoolbutton.c @@ -184,7 +184,7 @@ gtk_radio_tool_button_new_from_stock (GSList *group, } /** - * gtk_radio_tool_button_new_from_widget: + * gtk_radio_tool_button_new_from_widget: (constructor) * @group: (allow-none): An existing #GtkRadioToolButton, or %NULL * * Creates a new #GtkRadioToolButton adding it to the same group as @gruup @@ -207,7 +207,7 @@ gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group) } /** - * gtk_radio_tool_button_new_with_stock_from_widget: + * gtk_radio_tool_button_new_with_stock_from_widget: (constructor) * @group: (allow-none): An existing #GtkRadioToolButton. * @stock_id: the name of a stock item * -- 2.30.2